<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<style type="text/css">
	<%@ include file="../stylesheets/main.css" %>
	<%@ include file="../stylesheets/header.css" %>	
	<%@ include file="../stylesheets/loginContent.css" %>	
	<%@ include file="../stylesheets/footer.css" %>	
</style>
<%@ include file="html-header.jsp"%>
</head>
<body>
	<img id="background_noresize" alt="background_noresize" src="/Browarex/img/background.jpg">
	
	<div id="left-column-outer">
		<div id="left-column">
		</div>
	</div>
	<div id="center-column">
		<div class="CenteredContainer">
			<%@ include file="header.jsp"%>
			<div class="ContentShade"></div>
			<div class="LoginContainer">
				<form method="post" action="<c:url value='j_spring_security_check' />">
					<table cellpadding="5" cellspacing="5">
						<tr>
							<td><span><s:message code="user.login" /></span>
							<c:if test="${not empty error}">
								<span style="color: red; float:right">
								<s:message code="AbstractUserDetailsAuthenticationProvider.badCredentials" />
								</span>
							</c:if>
							<br/>
							<input id="login" type="text" name='j_username' />
							</td>
							<td><span><s:message code="user.password" /></span><br/>
							<input id="password" type="password" name='j_password' /></td>
						</tr>
						<tr>
							<td colspan="2" align="right">
							<input type="submit"value="<s:message code="button.login" />" id="loginButton"></td>
						</tr>
					</table>
				</form>
				<img alt="Simple Line" src="/Browarex/img/line.png"><br/>
				<a href="register" class="RegisterLink"><s:message code="user.new.account" /></a>
			</div>

	<%@ include file="footer.jsp"%>
	</div>
		</div>

	<div id="right-column-outer">
		<div id="right-column">
		</div>
	</div>
</body>
</html>